// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   XAudio.java

package com.cyberstep.onstage.audio;


// Referenced classes of package com.cyberstep.onstage.audio:
//            XAudio4Win32, XAudio4Mac, XAudioInterface

public class XAudio
{

    public XAudio()
    {
    }

    public static boolean open(String name)
    {
        return xaudio.open(name);
    }

    public static void play()
    {
        xaudio.play();
    }

    public static boolean play(String name)
    {
        return xaudio.play(name);
    }

    public static boolean isMP3File(String name)
    {
        return xaudio.isMP3File(name);
    }

    public static void pause()
    {
        xaudio.pause();
    }

    public static void seek(int offset, int range)
    {
        xaudio.seek(offset, range);
    }

    public static void stop()
    {
        xaudio.stop();
    }

    public static void close()
    {
        xaudio.close();
    }

    public static void setVolume(int v)
    {
        xaudio.setVolume(v);
    }

    public static int getVolume()
    {
        return xaudio.getVolume();
    }

    public static void setPriority(int p)
    {
        xaudio.setPriority(p);
    }

    public static int getPriority()
    {
        return xaudio.getPriority();
    }

    public static XAudioInterface xaudio=new XAudioEmpty();

//    static 
//    {
//        String os = System.getProperty("os.name");
//        if(os.startsWith("Windows"))
//            xaudio = new XAudio4Win32();
//        else
//        if(os.startsWith("Mac OS X"))
//            xaudio = new XAudio4Mac();
//    }
}
